package com.atguigu.exam;

/**
 * @author xbd
 * @create 2021-05-26 20:24
 */
public class WeekTest{
    public static void main(String[] args) {
        Week oneday = Week.SATURDAY;
        System.out.println(oneday);
        System.out.println("*****************");
        Week[] days = Week.values();
        for (int i = 0; i < days.length; i++) {
            System.out.println(days[i]);
        }
    }
}

enum Week{
    MONDAY("星期一"),
    TUESDAY("星期二"),
    WEDNESDAY("星期三"),
    THURSDAY("星期四"),
    FRIDAY("星期五"),
    SATURDAY("星期六"),
    SUNDAY("星期七");

    private final String plan;

    private Week(String plan) {
        this.plan = plan;
    }
}